<template>
  <div class="login-page">

  </div>
</template>

<script type="text/ecmascript-6">
import login from '../service/login.js'

export default {
  data() {
    return {

    }
  },
  components: {

  },
  created () {
    this.isOk();
  },
  methods: {

    isOk(){
      var _this=this;
      const loading = this.$loading({
        lock: true,
        text: '数据加载中...',
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.7)'
      });
      login(loading,this.goHome)
    },
    goHome(){
      this.$router.push({path:'/home'})
    }
  }
}
</script>

<style scoped lang='scss'>
.login-page{
  width: 100%;
  height: 100%;
  background: transparent;
}
</style>
<style>
.el-loading-spinner i {
    font-size: 42px;
}
.el-loading-spinner .el-loading-text {
    font-size: 20px;
}
</style>
